package com.jiuyuan.mapper;

import com.jiuyuan.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiuyuan
 * @since 2023-02-15
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> getMenusByAdminId(@Param("id") Integer id);

    List<Menu> getMenusWithRoles();

    List<Menu> listAll();
}
